package com.blog.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.blog.pojo.ThumbsUp;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * Copyright (C), 2022
 * Author: 苏大大
 * Date: 2022-04-25 16:56
 * FileName: ThumbsUpMapper
 * Description:
 */
@Repository(value = "ThumbsUpMapper")
@Mapper
public interface ThumbsUpMapper extends BaseMapper<ThumbsUp> {
    //取消点赞
    int deleteThumbsUp(Long blogId,Long uid);
    //点赞
    int insetThumbsUp(ThumbsUp thumbsUp);
    //查看用户点赞状态
    ThumbsUp selectThumbsUp(Long blogId,Long uid);
}
